package com.example.demo.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class SmsSendDTO {
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1[0-9]{10}$", message = "手机号码格式错误")
    private String phone;

    public SmsSendDTO() {
    }

    public SmsSendDTO(String phone) {
        this.phone = phone;
    }
}
